#pragma once

#include "Widgets/Widget.h"
#include "IndexSwitcher.m.h"

//show only one subwidget at a time
//use a index to determine which subwidget should be shown
RCLASS()
class WHENGINE_API RIndexSwitcher :public RWidget
{
    ROBJECT

public:
    // index of subwidget of RIndexSwitcher, this subwidget will be shown,others willbe hidden
    TWidgetAttribute<uint32_t> CurrentWidgetIndex=0;


    virtual void PaintSubWidgets(uint16_t& InZOrder) override;
};